package com.yami.shop.bean.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel(value = "用户积分参数")
@Data
public class UserScoreRecordImportParam {

    @NotBlank(message = "用户id不能为空")
    @ApiModelProperty(value = "用户id", required = true)
    private String userId;

    @NotNull(message = "记录类型不能为空")
    @ApiModelProperty(value = "记录类型 1支出 2收入", required = true)
    private Integer type;

    @NotNull(message = "数量不能为空")
    @ApiModelProperty(value = "数量", required = true)
    private double amount;

    @ApiModelProperty(value = "备注")
    private String mark;
}
